Php Array Object Remove Elements From Arraylist Java