Change this back to != or add check for undefined as well.