Reworked to support old PHP versions

Array short syntax excluded.