this might fix it. mobile is undefined not false