Correcting isEmpty

Was doing the opposite of intention.