checking if prefix is required in element