init( $item ); } } /** * Initialize class properties based on data array. * * @since 1.0.0 * * @param array $data */ private function init( $data = array() ) { $this->set_vars( $data ); } /** * Determines whether the current row exists. * * @since 1.0.0 * * @return bool */ public function exists() { return ! empty( $this->id ); } }