check.for.library function

Check for library