Resolve the fatal error on deleting assigned menus, fixes #23
Use is_wp_error since we can
Merge pull request #41 from x-team/issue/23

Resolve the fatal error on deleting assigned menus, fixes #23