The attached patch fixes two warnings (which have been treated as errors):
The first one is pretty simple (comparing/returning possible undefined variable).
The second one seems to be a check on the wrong variable.
Created attachment 10967 [details] [review]
on Jan 16, 2017 at 15:01:53.
(provided by the Example extension).