Clean up ninja_forms_inner_custom_box(). Improve  check. Remove unused global reference