You'd need to use a CB Query Field and count the number of entries they've uploaded for the asset that gallery field is using then condition against that. Will review adding a PHP value output for gallery fields to just return the media upload count so this could be possible in the future, but for now gallery fields only have HTML output which includes the entire gallery HTML.
forge.joomlapolis.com/issues/7492