A new guide has been published: How To Check If GUI Is Installed In Linux From Commandline
OSTechNix published a quick tutorial about how to check if a GUI is installed in Linux.
Read more @ Linux Compatible