Extracted method to identify condition.