Use 'strlen' instead of 'exists'.