isEmpty() can be used to check if the string is empty.
isEmpty()
ArrayList<Person> persons = new ArrayList<>();