<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _check_lib(self, remake, compiler, debug, profile):
 """Makes sure that the linked library with the original code exists. If it doesn't the library is compiled from scratch. """

        from os import path
        if self.link is None or not path.isfile(self.link):
            self.makelib(remake, True, compiler, debug, profile)