stop errors happening on directories that don't exist - return empty array instead