guard using a condition object