In this case only possible option is to use following syntax:
'smallimage' => (isset($product_option_value_description_query->row['smallimage'])
? isset($product_option_value_description_query->row['smallimage'])
: NULL)
Though this has side effect, if your condition fails you will have "smallimage" key with value of NULL