[ticket/4] Fix code syntax for PHP <5.4