Check for name's presence properly