when checking a boolean, checkif true, not if defined