Delete directory already returns false so there is no need to do this check again.