update getattr to not return None