added condition to check for callable when chain empty and return result