iscoredump answers a simple question: "is this file a core dump"?
Iscoredump returns a non-zero exit code if the provided file is not a core dump, allowing you to integrate it into your scripts.
➜ iscoredump ./core
ELF type: Core
➜ echo $?
0
➜ iscoredump /bin/true
ELF type: Executable
➜ echo $?
1
➜ mv core icouldbeanexecutable_youdontknowme
➜ iscoredump icouldbeanexecutable_youdontknowme
ELF type: Core
➜ echo $?
0