adds isSmartphone method.