you need to check that ``$wrappedObject`` is not null before calling the method on it (see the typehint)