% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/middleware.R
\name{.s7_prop_is_true}
\alias{.s7_prop_is_true}
\title{Safely check whether an S7 property is TRUE}
\usage{
.s7_prop_is_true(object, prop)
}
\arguments{
\item{object}{An object that may or may not be an S7 object.}

\item{prop}{A single character string giving the property name
to check.}
}
\value{
A logical scalar. Returns \code{TRUE} only if the object
is a valid S7 object, the property exists, and the property
value is exactly \code{TRUE}. Otherwise returns \code{FALSE}.
}
\description{
Internal helper that safely checks whether an object:
\enumerate{
\item exists and is not \code{NULL},
\item is an S7 object,
\item contains a specified property, and
\item has that property set to \code{TRUE}.
}
}
\details{
This helper is primarily used to avoid errors when optional
ggplotplus S7 components may not (yet) exist on a plot object.
}
\keyword{internal}
