Doesn't a `dylib?` function already exist?  I'm using it in this line.  This if statement is to find basically anything `otool` can work with.