Ah you're returning undefined when there isn't a answer. Not a Java pattern but is this a common JS pattern (returning true/false/undefined)?