Add helper function to check isAdmin for later use