Modifies [0]['value'] to prevent error in old php versions