Is there a reason not to use 'return X == missing_values' here?