Improve compatibility PHP 5.3