Changed check from missing to NULL