Cast var to bool and do a strict check in if statement in shortcode callback