support deprecated method for HEAD support with pry-doc.

closes #1152.
related to #1136 but `? File.exists?` is still not showing me documentation.