updated unavailable email to only send if unavailable records