Refactor

PHP 5.4+

Signed-off-by: Ram Ram <ramon@www.com.mx>