Moved isAndroid function