Adding hasAlias() function to BaseObject.pm to make it easier to avoid iterating aliases