You're returning too early; the return should be underneath the next `if` block.