Need a !empty() check here, '0' is the false value, '1' is true.

Part of the fix for Bug: 12042
Remove unnecessary else clause.
Not needed, and was incorrectly named anyway.
Fix variable name.

Part of the fix for Bug: 12042
Be consistent with using !empty() checks unless we absolutely need a isset() check.