I created the function below that returns me if the image alt is empty, get the caption and if it is also empty, get the image title. It\'s working if I pass the specific im