Getattr vs Hasattr

Think I did this wrong