Adds check for existing context before syncing.