The article "an" is used when the following letter "sounds like a vowel", so it's correct to use it before a mute "h", but not before an "h" that you pronounce (this has a name I can't seem to remember now).
So, it's "an helicopter", but "a homemade", see the difference?
@English speakers, please correct me if I'm wrong xD