Removed useless code
Fixed PHP 5.3