Switch off isInvalid() which is soon to be deprecated