My first advice would be too when someone suggest something, try it instead of expecting them to investigate it for you. (Sorry, bad day).
Ok, I was curious myself so I corrupted an image and ran getimagesize on it. The result was null.
So kusarigama's suggestion will work.