cut down nested conditionals in CheckLibraryAndUserInut