use isEmpty() to check if collection is empty or not