Event emit fix, validate if method exists on element