Make plugin compatible with PHP 5.4 and below.