Earlier check for existence for repalce/append/prepend.