check if exist first

Signed-off-by: bovitobo <bovitobo@yahoo.com>