Check if the loggedinuser is part of the recordtype?

I have a recordtype "User" and it has column named : 'IsInternal' that decides if user is internal or external and its a Boolean field. On the basis of this column i want to find out if the loggedinuser is external or internal how can I achieve that? after knowing that if the user is internal or external i will enable and disable the filter list options which i am achieving through logic below:

a!recordFilterList(
  name: "User Email Domain",
  options: {
    a!recordFilterListOption(
      id: 1,
      name: "Internal",
      filter: a!queryFilter(
        field: User.isInternal,
        operator: "=",
        value: true()
      )
    ),
    a!recordFilterListOption(
      id: 2,
      name: "External",
      filter: a!queryFilter(
        field: User.isInternal,
        operator: "=",
        value: false()
      ),
      
    )
  },
  defaultOption: "External",
  isVisible: true,
  allowMultipleSelections: true
)

  Discussion posts and replies are publicly visible