This if seems unnecessary.. Couldn't you also use the line within the if case