revert controller, changed get_file to is_file
file comments
pulled path_is_root_file_of_key into new function