if (is_null($reason)) {
            throw new InvalidArgumentException("No reason was supplied"); 
        }