Added safeGetDouble