add double checking for strtotime function