That works, but then you also can't access isAdmin from another package.
You can just make an IsAdmin() public function to expose it.