Fixes #27: I wait until I see text/element

Minor: should be a space before `{` here and one after `else`, e.g.

```
if(empty($element)) {
   return false;
} else {
   return $element->isVisible();
}
```

Also, the brackets around `$element->isVisible()` seem redundant here.