Completion function handles empty completion list.