Check if professions directory is available before accessing it