menu null checks