Check against eq 0 strict instead of lt 1 for min and max file length. Remove else check and return if an error occured if the minified file was empty.