replacing isIOS with isIpad + fix for isLinear if undefined