MOBILE-3062 - Wrong if statement fix