replace isNull check with Tuple size check