seeing as this is the last if of its kind: turn the == into !=, do the fail in the if

Remove the else block altogether, and do the package outside.

Generally, always do that where possible, no one wants to exert that much mental effort to follow simple code.