Forgot to add keyword `return` when creating the helper function `_hasNonWhitespace`.