API options: Fix case when no options are present