check for empty valid expression