Check for mask before using it