class_exists('imagick')
Returns false on lotus.
Additionally, there is no mention of imagemagick using get_loaded_extensions(). phpinfo() is disabled, but I don't see any way that it's possible for imagemagick to be working. Your workaround for exec is clever, but it looks like it may not go...