check if label by a specific name exists,

Say if i want to find if such label exists

```
<label onClick='javascript:someMethod()' name="label_name">*some text*</label>

```

if so then i need to implement some code.