Add isDeclaration function