They talked together for a long time , and then the lady said he had better leave her as she expected her husband back at any moment , and he might not like him to be there ; but the young man assured her she need not be afraid , as he had with him a cap which would make him invisible .