Fixed return value to accept undefined as true