check if menu or command are null