Fix or array_replace error in < 5.3

Signed-off-by: Spuds <spuds@spudsdesign.com>