Add code for verifying div existence.