fixed if statement logic error

eom

Signed-off-by: Robert Tipton <tret@tretflix.com>