L'importante è che funzioni. Quello che hai postato dovrebbe essere OK.