fixed custommenu php fatal error re: empty()