public function has($object)
    {
        // search for the correct serializer
        foreach ($this->serializers as $serializer) {
            $className = $this->getSerializerHandledClass($serializer);

            if ($object instanceof $className || $object === $className) {
                return true;
            }
        }

        false;
    }
public function has($object)
    {
        // search for the correct serializer
        foreach ($this->serializers as $serializer) {
            $className = $this->getSerializerHandledClass($serializer);

            if ($object instanceof $className || $object === $className) {
                return true;
            }
        }

        false;
    }
public function has ( $ object ) { // search for the correct serializer foreach ( $ this -> serializers as $ serializer ) { $ className = $ this -> getSerializerHandledClass ( $ serializer ) ; if ( $ object instanceof $ className || $ object === $ className ) { return true ; } } false ; }
Check if serializer instance exists.

@param mixed $object

@return mixed

@throws \Exception
Check if serializer instance exists .