Map Class, improved IsAllowed method