Added conditional tests to accomodate for wrapping array

on older platforms, splice returning undefined is really.. odd,
but since we're aiming for transparency (should we be - i think
that may be up for some debate), it's supported for now