public function isValid($item)
    {
        if (!$item) {
            $item = new \stdClass();
        }
        $validator = $this->getValidator();

        return $validator->validate($item);
    }
public function isValid($item)
    {
        if (!$item) {
            $item = new \stdClass();
        }
        $validator = $this->getValidator();

        return $validator->validate($item);
    }
public function isValid ( $ item ) { if ( ! $ item ) { $ item = new \ stdClass ( ) ; } $ validator = $ this -> getValidator ( ) ; return $ validator -> validate ( $ item ) ; }
Determine if the provided object is valid or not

@param mixed $item

@return bool
Determine if the provided object is valid or not