taxonomies ) ) { // If we're here, then the developer made an error: throw an exception to bring this up as early as possible. throw new \RuntimeException( 'The ' . __TRAIT__ . ' trait requires the user class to define a $taxonomies array parameter.' ); } return in_array( $key, $this->taxonomies, true ); } }