added if statement to check if dieititan has articles because .where statement was causing an error in production