i added isRecordPresent method
rechecked. everything is working fine