Check that bin is defined before checking for existence