Fixed isMobile method and moved it to OS class