protected function checkValue($value, $condition) {
        list($filterType, $valueToCheck) = $condition;

        switch ($filterType) {
            case self::FILTER_TYPE_EQ:
                return $valueToCheck == $value;

            case self::FILTER_TYPE_NEQ:
                return $valueToCheck != $value;

            case self::FILTER_TYPE_LIKE:
                return strpos($value, $valueToCheck) !== false;

            default :
                throw new InvalidFilterTypeException("Filter type '$filterType' is unknown'");
        }
    }