Instantiate psobject directly
Use more simple check for existence of member