Check If Arraylist Has Element Java