LPS-46711 Added new utility method for arrays in order to check element existence