Make the mask check explicit on nil