contains() replaced with offsetExists() for php8.5 compatibility

Closes #3560958

Merge request reports

Loading