How can I check that the file is present in database entry and also in files folder?
You can use file_destination() drupal function to  check if file already exists in sites/default/files with second parameter as FILE_EXISTS_ERROR.

if (!file_destination($uri, FILE_EXISTS_ERROR)) {
  // The file exist
  // Do something
}