replaced check with outcome of function isSupported()