I found out I was able to detect how many frames there was in a GIF (or any image for that matter) with ImageMagick.
e.g.:
$frames = exec("identify -format '%n' theimage.gif");
if ($frames>1) {print "This is an Animation!"; exit;}
Thanks for the suggestion! 😃