isEmpty() can be used to check if the string is empty.

ArrayList<Person> persons = new ArrayList<>();