Implement condition check