Issue #3152851 by atbserg: Replace assertions involving calls to is_array() with assertIsArray()/assertIsNotArray()