Check for null flags before checking if set