added checkIfBinExists