makes the plugin compatible with earlier versions of php