Condense input conditional in safe_install().