Don't try and iterate through object if it's not a string