Yes, it likely is an elderberry, just not the species with flat top flower heads. In America we have Sambucus racemosa with flowers that look like that. I don't know if Scotland has the same species or perhaps a similar European counterpart.
When the debate is lost, slander becomes the tool of the losers. - Socrates