cookast: catch empty function definitions