moved check to a child theme file