Move isadmin to external file