Check dimensions only in strict mode