properly removed object invalid checks for key/bucket