Cleaned up if condition.