Better code analysis of methods to see when they are empty

Fixes #492
you should handle the case of ``$reflectionClass->getFileName()`` being ``null`` (classes implemented in C or through ``eval``) to avoid weird errors