is window.opera really the best way to single out Opera?

i have a page where positioning for an h4 element is ok except in Opera9 so I wrote:

if(window.opera){
changeStyleHere;
}

is this the best way?