Added support for less than 5.3 php version