Modified binary check condition