proper check for isEmpty