Removed unnecessary boolean comparison