add conditional to check if IMDB API request returns an error and delete movie record if if does