Checks if metadata exists or not