Fixed PHP5 incompatibility with isset() on ArrayObjects

Closes #3309