#222 Replace `checkIsAdmin` by equivalent check