A remark on cosine families