Check if conditions are met