TypeError thrown
ftp_rename(): Argument #1 ($ftp) must be of type resource, null given