private function isInstanceOf($value, $classFQN)
    {
        return is_object($value)
        && (strtolower(get_class($value)) === strtolower($classFQN) || \is_subclass_of($value, $classFQN, true));
    }
private function isInstanceOf($value, $classFQN)
    {
        return is_object($value)
        && (strtolower(get_class($value)) === strtolower($classFQN) || \is_subclass_of($value, $classFQN, true));
    }
private function isInstanceOf ( $ value , $ classFQN ) { return is_object ( $ value ) && ( strtolower ( get_class ( $ value ) ) === strtolower ( $ classFQN ) || \ is_subclass_of ( $ value , $ classFQN , true ) ) ; }
Check if a class is instance or extends from the expected instance.

@param mixed  $value
@param string $classFQN

@return bool
Check if a class is instance or extends from the expected instance .