Unfortunately it wont work with arrays or objects, PHP is actually checking that this is a string.