correct isNull check