Add check for no "functions" returned (as requested by code review).