function serialise($data) { if (is_null($data) || $data == '') { return ''; } return $this->_serialiser->encode($this->check_encoding($data)); }