Add .exists() function to ElementQuery (#13366)

Change-Id: I1987c5f2db3030b86a1a0ce41ed73c4fc1d297f3