Consider using `select`:
```ruby
repo_teams.select { |repo_team| token_bearer.has_admin_access_through_team?(team.id) }
```