has element function