results = array_map( function ( $row ) { $row['options'] = ! empty( $row['options'] ) ? json_decode( $row['options'], true ) : $row['options']; return $row; }, $this->results ); } }