Added const T& overloads for getIfHas... (investigate :/)