use isEmpty instead of equals ''