Templating - Team Membership

Hi is it possible to use templating to check if a user is a Member of a certain Organisation/Team.

I want to customize the header links. Using templating i can customize those allready for registered users:

{if and .IsSigned .MustChangePassword}}
	{{/* No links */}}
{{else if .IsSigned}}
	<a class="item" href="https://example-a.com" target="_blank">Example A</a>
	<a class="item" href="https://example-b.com" target="_blank">Example B</a>
{{end}}

Now i was wondering if it would be possible to customize this even further using templating. For example is
it possible to check if a user is a member of a organisation/team. something like this:

{if and .IsSigned .MustChangePassword}}
	{{/* No links */}}
{{elif if .IsMember("myorg"}}
	<a class="item" href="https://example-a.com" target="_blank">Example A</a>
	<a class="item" href="https://example-b.com" target="_blank">Example B</a>
	<a class="item" href="https://example-c.com" target="_blank">Example C</a>
	<a class="item" href="https://example-d.com" target="_blank">Example D</a>
{{else if .IsSigned}}
	<a class="item" href="https://example-a.com" target="_blank">Example A</a>
	<a class="item" href="https://example-b.com" target="_blank">Example B</a>
{{end}}

I looked through the repository and tried to search thies forum and the issues on github but have not found anything.