Made isSupported function smaller.