Added missing clause to OR condition that prevents invalid skus in the book array to be inserted into the database.