/** * Gets last child if it exists * * @param PropelPDO $con Connection to use. * @return mixed Propel object if exists else false */ public function retrieveLastChild(PropelPDO $con = null) { if ($this->hasChildren($con)) { if (is_array($this->_children)) { $last = count($this->_children) - 1; return $this->_children[$last]; } return sfBreadNavPeer::retrieveLastChild($this, $con); } return false; }