[#67] refactored generate_identifier callback with exists? method