Should reverse these checks (`currentStyle` & `getComputedStyle`) since `getComputedStyle` is a standard and `currentStyle` is proprietary. It's always safer to test standard properties/methods first.