add beDefined and beUndefined