Inverse check order to avoid useless division