replace has_versions? by versions.any?