refactor: use pool side task functions list for hasTaskFunction()