39 relatedMetric = list();
40 relatedMetric = zoho.crm.getRelatedRecords("Metrics","Deals",dealId);
41 if(relatedMetric.isEmpty() == false)
{
Not sure why this is happening? it's literally the purpose of the function to check if the passed list contains any values.