Should probably be changed to ```if (null !== ($query = $this->getQuery()) {``` or as with the ```$fragment``` above