Optionally wrap in a strict mode function