fix: check for readline completion function