Added condition

Modifext needed to display an error if a parameter was missing OR no
files could be found