Use isEmpty to check collection is empty or not