Fixed calling isConditionMet function