this looks like a weird signature. Couldn't it be an empty array when you don't have attributes ?