Add ismobile() and isdesktop() methods