Perform simple validation like isEmpty and isDefined in a consistent manner