use a strict check to see if strict is a boolean