statisfiesCondition method