Use hydrator variable only when hydrator variable is assigned

The hydrator variable is not in use before $this->getHydratorFromName() is called. i just fixed the structure.
You are right, but in my case it throws an "Notice" undefined variable hydrator. So i will made add a isset($hydrator)