Helper function to check the existance of a revision