Return an explicit value (1/0) instead of potentially undef

To avoid an "Odd number of elements in anonymous hash" warning
Merge pull request #924 from afuna/explicit-return-mobile-view

Return an explicit value (1/0) instead of potentially undef