adding if to catch instances when div#related.mit is undefined