Added some exists check optimizers.

Signed-off-by: Rack Lin <racklin@gmail.com>
Merge branch 'enhancement/exists'