readjusting logic to do check before trying to create instance
readjusting logic to do check before trying to create instance

singularityhub/sregistry,singularityhub/sregistry,singularityhub/sregistry,singularityhub/sregistry