Better code analysis of methods to see when they are empty

Fixes #492
rather than usign ``token_name``, why not using the constants and comparing them to the token itself ?

```php
return is_array($token) && in_array($token[0], array(T_COMMENT, T_DOC_COMMENT));
```