Mistakenly returned null for a boolean method