Added sniff that detects if an entity implements the automatically generated interface

Also made the project compatible with PHP 5.4 again
`while (true)`, variable is never re-assigned so it can be removed.