added namespace support for has method