[TASK] Add early return when menu array is empty