Check for exist and has records