Function isPortableTextToolkitSpan