Removed unnecessary empty check.