add check to make sure SCRIPTS is not empty