ViewExists checks whether a view exists. If the view exists, the result is 1 and if it does not exist the result is 0.