Yes, I have checked again .
the IsAdministrator function is not for current user . You must query your database and get whether the 'useruniquename' is the administrator.
public bool IsAdministrator(string useruniquename)
{
return MyUserModal.IsMySiteAdmin(useruniquename);
}