Moving Array.isArray higher, so it can be used inside Array#splice
Ensuring that Array#splice works properly in Safari 5.1.