I do believe that the ternaryconditional operator is the shortcut :) For the sake of saving function calls and readability, I suggest saving the value to a variable first.
$some_value = $this->db->get_where('my_db',array('id'=>$id))->row()->some_value); $output = $some_value ? $some_value : "Some Value Not Set"; echo $output;