check has-subnav function for break