Katalon not iterating through WebElements when the function was used as CustomKeyword

Katalon not iterating through Web Elements when the function was used as Custom-keyword. Without iterating, it shows result as Function PASSED.When the same is used in Test Script, it is iterating through web elements.