Add a safety check.