Removed useless null check.