Check if ref is not empty in :check_deps_version