Added respond_to? conditional to visibility handler to prevent warnings.