Added empty check.