This liaison, which is represented by a phoneme appearing at the end of some words, must be removed when the next word begins with a consonant since the liaison phoneme is never pronounced in that case.
if the next word begins with a vowel, the liaison phoneme may or may not be pronounced and thus becomes optional.