made isPlatform an instance method.